﻿<MCarousel>
    @foreach (var item in items)
    {
        <MCarouselItem
            Src="@item"
            ReverseTransition="fade-transition"
            Transition="fade-transition">
        </MCarouselItem>
    }
</MCarousel>

@code
{
    private string[] items = new[]
    {
        "https://cdn.masastack.com/stack/images/website/masa-blazor/carousel/squirrel.jpg",
        "https://cdn.masastack.com/stack/images/website/masa-blazor/carousel/sky.jpg",
        "https://cdn.masastack.com/stack/images/website/masa-blazor/carousel/bird.jpg",
        "https://cdn.masastack.com/stack/images/website/masa-blazor/carousel/planet.jpg",
    };
}
